package com.mive.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
/**
*describe: 自定义配置文件
*
*@author Allen
*@version 1.0.0
*@date 2018/6/6
*/
@Configuration
@PropertySource(value = "classpath:config/constant.properties" )
@ConfigurationProperties(prefix = "txyun.server")
public class ConstantConfig {

    private String Host;

    private Integer mysqlPort;

    private Integer redisPort;

    public String getHost() {
        return Host;
    }

    public void setHost(String host) {
        Host = host;
    }

    public Integer getMysqlPort() {
        return mysqlPort;
    }

    public void setMysqlPort(Integer mysqlPort) {
        this.mysqlPort = mysqlPort;
    }

    public Integer getRedisPort() {
        return redisPort;
    }

    public void setRedisPort(Integer redisPort) {
        this.redisPort = redisPort;
    }
}
